<template>
    <div class="box">
        <part :device_id="device_id" v-if="active.value === 1"></part>
    </div>
</template>

<script>
import { requestApi } from '@/requset/api'
import { deepClone } from '@/plugins/clone'
import zyForm from '@/components/common/zyForm.vue'
import part from './part.vue'
export default {
    data() {
        return {}
    },
    components: {
        part,
    },
    props: {
        active: {
            type: Object,
            default() {
                return {}
            },
        },
        device_id: {
            type: Number,
            default() {
                return 0
            },
        },
    },
    methods: {},
    computed: {
        operate() {
            return parseInt(sessionStorage.getItem('operate')) === 1
        },
    },
    created() { },
}
</script>

<style lang="less" scoped>
.box {
    width: 100%;
    height: 100% !important;
    display: flex;
    justify-content: space-between;
}
</style>
